package com.hundredhealth.rose.model;

import java.io.Serializable;

/**
 * Created by huazhong on 4/7/2017.
 */

public class Device implements Serializable {
    private String name;
    private String address;

    public Device(String name, String address) {
        this.name = name;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public String getAddress() {
        return address;
    }

    public String getDisplayName() {
        String displayName = getName();
        if (displayName == null)
            displayName = "BT";
        else if (name.equals(getAddress()))
            displayName = "BT";
        return displayName + ": " + getAddress();
    }
}
